import request from '@/utils/request';

// 查询
export function listRotationChart(query) {
    return request({
        url: '/commodity/slideshow/list',
        method: 'get',
        params: query
    })
}

export function addRotationChart(data) {
    return request({
        url: '/commodity/slideshow',
        method: 'post',
        data
    })
}

export function editRotationChart(data) {
    return request({
        url: '/commodity/slideshow',
        method: 'put',
        data
    })
}

export function delRotationChart(data) {
    return request({
        url: `/commodity/slideshow/` + data,
        method: 'delete',
    })
}
